package cn.edu.neusoft.lb.historydemo;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.widget.ImageView;
import android.widget.TextView;

public class DetailsActivity extends AppCompatActivity {

    private static final String  TAG="DBUtils";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_details);

        //获取组件
        //ImageView imageView = findViewById(R.id.imageView2);

        //接收数据
        Intent intent = getIntent();
        String n = intent.getStringExtra("coordinate");
        String p = intent.getStringExtra("id");
        //更新UI视图
        TextView tvDGJ = findViewById(R.id.tvDGJ);
        TextView tvDID = findViewById(R.id.tvDID);
        tvDGJ.setText(n);
        tvDID.setText(p);
    }
}